import getCityByMap from "../../utils/baiduGetCity";
export const getCityList = () => {
    return (dispatch) => {
      getCityByMap().then(result => {
            dispatch({ type: "GET_CITY", payload: result.replace("市", "") })
        })
    }
}

export const changeCity = (cityName) => {
    return {
        type: "ALTER_CITY",
        value: cityName
    }
}

